public class HF_ClientWSAccountzip{    
        @future (callout=true)
              public static void AddServiceAreaZipCode(set<Id> zipset) {
              string outputresult;
              List<Service_Area_Zip_Codes__c> zipList = new List<Service_Area_Zip_Codes__c>([select Id,Postal_Code__c,Affiliate_Partner_ID__c from Service_Area_Zip_Codes__c where ID In: zipset]); 
              WebServiceFinal4.BasicEndpoint s = new WebServiceFinal4.BasicEndpoint();
              for(Service_Area_Zip_Codes__c zp: zipList){
                
        //Stores serviceareazip details in ServiceAreaZipCodeWrapper
        WebServiceFinal2.ServiceAreaZipCodeWrapper c=new WebServiceFinal2.ServiceAreaZipCodeWrapper();
            
                c.SfdcServiceAreaZipCodeID=zp.Id;
                c.HFHIPartnerID=zp.Affiliate_Partner_ID__c;
                c.PostalCode=zp.Postal_Code__c;
                c.DataOn=system.DateTime.Now();
        try
        {
             outputresult=s.AddServiceAreaZipCode(c);
             system.debug('****'+outputresult);
        }
        catch(Exception ex)
          {
             system.debug('output from webservice: '+ex);       
          }
        }       
    } 
    
    @future (callout=true)
 public static void DeleteServiceAreaZipCode(Set<String> Zipset) {
        WebServiceFinal4.BasicEndpoint s = new WebServiceFinal4.BasicEndpoint();
        if(Zipset!= null&& Zipset.size()>0){
        for(String sList: Zipset){
        If(sList != null && sList.contains('$'))
        {       
           List<String> parts = sList.split('\\$');
        //Stores serviceareazip details in ServiceAreaZipCodeWrapper     
           WebServiceFinal2.ServiceAreaZipCodeWrapper c=new WebServiceFinal2.ServiceAreaZipCodeWrapper();
           c.HFHIPartnerID=parts[1];
           c.PostalCode=parts[2] ;
           c.SfdcServiceAreaZipCodeID=parts[0];
           system.debug('#####Result'+c);
           try
             {
                   String result = s.DeleteServiceAreaZipCode(c);
                   system.debug('#####Result'+result);
             }
             catch(Exception ex)
             {
                  system.debug('Error output from webservice: '+ex);
             }
          }
        }
    }
  }             
}